package com.scm.biz.dao;

import java.util.List;

import com.scm.biz.bean.DesignOrder;
import com.scm.biz.query.DesignOrderQuery;
import com.scm.biz.result.DesignOrderResult;

public interface DesignOrderDao {
    int deleteByPrimaryKey(Long id);

    int insert(DesignOrder record);

    int insertSelective(DesignOrder record);

    DesignOrder selectByPrimaryKey(Long id);
    DesignOrder selectByOrderId(Long orderId);
    int updateByPrimaryKeySelective(DesignOrder record);

    int updateByPrimaryKey(DesignOrder record);
    
    List<DesignOrderResult> selectPage(DesignOrderQuery designOrderQuery);
    
    /**
     * 根据订单ID，查询详情
     * @param id
     * @return
     */
    DesignOrderResult selectDesignPageById(long id);
    
    /**
     * 设计订单总数
     * @param designOrderQuery
     * @return
     */
    int selectTotal(DesignOrderQuery designOrderQuery);
}